package com.vincce.sport.mapper;

import java.util.List;
import java.util.Map;

import com.vincce.sport.core.MyBatisRepository;
import com.vincce.sport.entity.ActivityOption;
import com.vincce.sport.entity.ActivityQuestion;
import com.vincce.sport.entity.Page;

@MyBatisRepository
public interface ActivityOptionMapper {
	/**
	 * 分页查询活动选项
	 * @param page
	 * @return
	 */
	public List<ActivityOption> queryActivityOptionByPage(Page<ActivityOption> page);
	/**
	 * 查询活动选项总数
	 * @param page
	 * @return
	 */
	public Long queryActivityOptionCount(Map<String, Object> map);
	/**
	 * 添加活动选项
	 * @param activityOption
	 * @return
	 */
	public Long insertActivityOption(ActivityOption activityOption);
	/**
	 * 更新活动选项
	 * @param activityOption
	 * @return
	 */
	public Long updateActivityOption(ActivityOption activityOption);
	/**
	 * 根据id删除活动选项
	 * @param id
	 * @return
	 */
	public Integer deleteById(Integer id);
	/**
	 * 查询所有活动选项
	 * @return
	 */
	public List<ActivityOption> findActivityOptionAll();
	/**
	 * 判断活动选项唯一性
	 * @param activityOption
	 * @return
	 */
	public List<ActivityOption> findActivityOptionByOne(ActivityOption activityOption);
	/**
	 * 通过id查询活动选项
	 * @param id
	 * @return
	 */
	public ActivityQuestion findActivityOptionById(Integer id);

}
